/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** get字典列表 传字典类型 POST /api/dict/getByType */
export async function apiDictGetByTypeUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.ApiDictGetByTypeUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.RApiDictType>('/api/dict/getByType', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** list字典列表 传字典类型 POST /api/dict/listByType */
export async function apiDictListByTypeUsingPost({
  body,
  options,
}: {
  body: API.ValidArrayListString;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListApiDictType>('/api/dict/listByType', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
